package com.ysw.bean;

import lombok.Data;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.Properties;

/**
 * @Description: spring_boot_learn
 * @Author:ysw
 * @Date: 2021/12/11
 */
@Data
public class Detail {
    private Integer order;

    public static void main(String[] args) throws IOException {
        InputStream resourceAsStream =
                Detail.class.getClassLoader().getResourceAsStream("ValidationMessages.properties");

        BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(resourceAsStream, "UTF-8"));
        Properties properties = new Properties();
        properties.load(bufferedReader);
        System.out.println(properties.getProperty("com.ysw.valid.ListStatus.message"));
    }
}
